import java.util.Scanner;

public class Homework_605_3 {
public static void main(String[] args) {
	//定义一个数组，存放10名同学的年龄，然后给数组中所有的数涨一岁。然后输出。
		Scanner input = new Scanner(System.in);
		int a[] = new int[10];
		int b = 0;
		for (int i = 0; i < a.length; i++) {
			System.out.println("请输入十个同学的年龄：");
			a[i] = input.nextInt();
		}
		for (int i = 0; i < a.length; i++) {
			a[i] = a[i] + 1;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i] + " ");
		}
}
}
